<style>
    .product-section {
        padding: 2.5rem;
        background: #fff;
        border-radius: 16px;
    }

    /* 内容容器 */
    .content-wrapper {
        display: flex;
        gap: 2.5rem;
        align-items: stretch;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    /* 视频卡片样式 */
    .video-section {
        flex: 1;
        min-width: 45%;
    }

    .video-container {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .video-container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px 0 0 12px;
    }

    /* 产品信息部分 */
    .product-info-section {
        flex: 1;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-header {
        margin-bottom: 2rem;
    }

    .product-title {
        font-size: 2.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .product-description {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #5f6368;
        margin-bottom: 2rem;
        text-indent: 2em;
    }

    .product-info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        background: #f8f9fa;
        padding: 1.5rem;
        border-radius: 8px;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .info-label {
        color: #5f6368;
        font-size: 1rem;
    }

    .info-value {
        color: #2c3e50;
        font-weight: 500;
        font-size: 1rem;
    }

    /* 下载按钮区域 */
    .download-section {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-top: auto;
        padding-top: 2rem;
    }

    .download-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        background: #3ac0f5;  /* 更现代的蓝色 */
        color: white;
        border: none;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }

    .download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(225, 247, 30, 0.39);
    }

     /* 按钮悬停效果 */
     .download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(58, 192, 245, 0.2);
        background: #2bb3e8;  /* 稍深的蓝色 */
    }

    /* 按钮点击效果 */
    .download-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 8px rgba(58, 192, 245, 0.2);
    }

    /* 按钮图标样式 */
    .download-btn i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    /* 按钮悬停时图标动画 */
    .download-btn:hover i {
        transform: translateY(2px);
    }

    /* 下载次数样式优化 */
    .download-count {
        font-size: 0.9rem;
        color: #666;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .download-count i {
        color: #009688;
    }
    /* 添加波纹效果 */
    .download-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
        }

    .download-btn:active::after {
        width: 200px;
        height: 200px;
        opacity: 0;
    }


    /* 响应式设计 */
    @media (max-width: 1200px) {
        .content-wrapper {
            flex-direction: column;
        }

        .video-container video {
            border-radius: 12px 12px 0 0;
        }

        .product-info-section {
            padding: 2rem;
        }
    }

    @media (max-width: 768px) {
        .product-section {
            padding: 1.5rem;
        }

        .product-title {
            font-size: 1.8rem;
        }

        .product-description {
            font-size: 1rem;
        }

        .product-info-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .download-section {
            flex-direction: column;
            align-items: stretch;
            gap: 1rem;
        }

        .download-btn {
            width: 100%;
            justify-content: center;
            padding: 1rem;
        }
    }
</style>

<div class="product-section">
    <div class="content-wrapper">
        <!-- 视频展示部分 -->
        <div class="video-section">
            <div class="video-container">
                <video controls poster="{{ url_for('static', filename='upload/video/video_1.png') }}">
                    <source id="videoPlayer" src="{{ url_for('static', filename='upload/video/video_1.mp4') }}" type="video/mp4">
                    您的浏览器不支持视频播放。
                </video>
            </div>
        </div>

        <!-- 产品信息部分 -->
        <div class="product-info-section">
            <div class="product-header">
                <h1 class="product-title" id="software_name">站距计算器DBSP Tools</h1>
                <div class="product-description" id="software_description">
                    站距计算器程序DBSPTools是一款用来计算地球两点间距离的工具。该程序基于Python语言开发，根据地球半径进行计算。用户可以通过输入两个地点的经纬度，程序将计算出这两个地点之间的近似真实距离。
                </div>
            </div>

            <div class="product-info-grid">
                <div class="info-item">
                    <i class="mdi mdi-version-outline"></i>
                    <span class="info-label">软件版本：</span>
                    <span class="info-value" id="software_version">v1.3.4</span>
                </div>
                <div class="info-item">
                    <i class="mdi mdi-file-outline"></i>
                    <span class="info-label">软件大小：</span>
                    <span class="info-value" id="software_size">1.2MB</span>
                </div>
                <div class="info-item">
                    <i class="mdi mdi-desktop-classic"></i>
                    <span class="info-label">软件平台：</span>
                    <span class="info-value" id="software_platform">Windows</span>
                </div>
                <div class="info-item">
                    <i class="mdi mdi-calendar-outline"></i>
                    <span class="info-label">更新日期：</span>
                    <span class="info-value" id="software_update_date">2023-10-01</span>
                </div>
            </div>

            <div class="download-section">
                <button class="download-btn" id="layui-btn-download">
                    <i class="mdi mdi-download"></i>
                    免费下载
                </button>
                <div class="download-count">
                    <i class="mdi mdi-download-outline"></i>
                    已下载 <span id="download_count_num">1000</span> 次
                </div>
            </div>
        </div>
    </div>
</div>